package com.apes.fn.fico.invoiceApply.repository;

import com.apes.fn.fico.invoiceApply.model.DirectInvoiceApply;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @BelongsProject: apes-server
 * @BelongsPackage: com.apes.fn.fico.invoiceApply.repository
 * @ClassName: DirectInvoiceApplyRepository
 * @Author: pyb
 * @Description: 直营发票申请持久层
 * @CreateTime: 2021-08-12 15:25
 * @Version: 1.0
 */
public interface DirectInvoiceApplyRepository extends CustomRepository<DirectInvoiceApply, String> {
    @Query("select buyerName from DirectInvoiceApply where buyerName like %:buyerName%")
    Page<DirectInvoiceApply> findBuyerName(@Param("buyerName") String buyerName, Pageable pageable);
}
